Skip to main content

Candles

Candles data refers to the open, high, low, and close prices of a cryptocurrency over a specific time period. Candlesticks are a type of chart that is commonly used by traders to analyze the price movement of a cryptocurrency. Each candlestick represents a specific time interval, such as 1 minute, 5 minutes, 1 hour, or 1 day, and provides valuable information about the price action during that time frame.

The CoinDCX API provides candlestick data for all cryptocurrencies traded on their platform. This data is commonly used by traders to identify trends, patterns, and trading opportunities in the market.

To extract Candles data using the CoinDCX API, use the following endpoint:

https://public.coindcx.com/market_data/candles/?pair=B-BTC_USDT&interval=1m

You can pass the following parameters along with the Candles endpoint to define

ParameterRequiredDescription
pairYesIt is a string created by ecode, target_currency_short_name, and base_currency_short name. For example, B-BTC_USDT.
intervalYesThe value can be any of the valid intervals. Acceptable values are:
  • m: Minutes (1m, 5m, 15m, 30m)
  • h: Hours (1h, 2h, 4h, 6h, 8h)
  • d: Days (1d, 3d)
  • w: Weeks (1w)
  • M: Months (1M)
startTimeNoStart time for the candle in ms. For example, 1562855417000
endTimeNoEnd time for the candle in ms. For example, 1562855417000
limitNoIndicates the limit of the candle.The maximum value for this parameter is 1000.
note

If a limit is not defined, 500 will be defined as default.

This endpoint will return the following response parameters,

ParameterDescription
openIndicates the opening price.
highHighest price during the mentioned interval.
lowLowest price during the mentioned interval.
volumeIndicates the total volume in terms of target currency. For example, B-BTC_USDT will have it’s volume represented with BTC.
closeIndicates the close price.
timeThe time at which the candle opens in ms.